package com.lkc.domain.vo;

import com.lkc.enums.AppHttpCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title: UpdateVo
 * @Author 椰咩咩
 * @Package com.lkc.domain.vo
 * @Date 2022/12/25 3:25
 * @description: 执行修改返回的视图模型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateVo {
    private Integer code;
    private String msg;

    public UpdateVo(AppHttpCodeEnum appHttpCodeEnum) {
        this.code = appHttpCodeEnum.getCode();
        this.msg = appHttpCodeEnum.getMsg();
    }
}
